﻿@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<ol>
    <li>Simple usage: @Html.ActionLink("Simple usage", "Index")</li>
    <li>With controller: @Html.ActionLink("With controller", "SomeAction", "Home")</li>
    <li>Full link (Google.com): @Html.ActionLink("Some Domain", @* linkText *@
                                                 "Index", @* actionName *@
                                                 "Home", @* controllerName *@
                                                 "https", @* protocol *@
                                                 "www.some-domain.com", @* hostName *@
                                                 "fragment", @* fragment *@
                                                 new {id = 1}, @* routeValues *@
                                                 new { @class = "Test", id = "myLink"} @* htmlAttributes *@)</li>
    <li>Using Url.Action: @Url.Action("SomeAction", "SomeController", new {id = 123})</li>
</ol>